import axios from './axios'
import qs from 'qs'
import {appUrl} from '../config/config'
// 业务列表
export const selectProductList = (params) => {
	// console.log(params)
    return new Promise((resolve,reject) => {
        axios({
            url: appUrl + '/agent-center/business/selectProductList',
            method: 'post',
            data:qs.stringify(params)
        }).then(res => {
            resolve(res.data)
        })
    });
}
// 获取分成数据
export const listProductSchoolAgentDivisionsById = (params) => {
	// console.log(params)
    return new Promise((resolve,reject) => {
        axios({
            url: appUrl + '/agent-center/division/listProductSchoolAgentDivisionsById',
            method: 'post',
            data:qs.stringify(params)
        }).then(res => {
            resolve(res.data)
        })
    });
}